package com.example.config;

import com.guoqing.utils.SwaggerConfigUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author guoq.z
 * @date 2021/3/6
 */
@Configuration
@EnableSwagger2
public class Swagger2Config {

    @Bean
    public Docket docket() {
        return new SwaggerConfigUtil("boot-bus").docket();
    }
}
